34c5a1d6c905c2377b12e713d43735567be6c2c4,Core/src/org/sleuthkit/autopsy/modules/filetypeid/FileTypeDetector.java,FileTypeDetector,detectAndPostToBlackboard,#AbstractFile#,150

Before Change


     * @throws TskCoreException if there is an error posting to the blackboard.
     */
    public String detectAndPostToBlackboard(AbstractFile file) throws TskCoreException {
        String mimeType = detect(file);
        if (null != mimeType) {
            /**
             * Add the file type attribute to the general info artifact. Note

After Change



        String mimeType;
        // Consistently mark unallocated and unused space as file type application/octet-stream
        if ((file.getType() == TskData.TSK_DB_FILES_TYPE_ENUM.UNALLOC_BLOCKS)
                || (file.getType() == TskData.TSK_DB_FILES_TYPE_ENUM.UNUSED_BLOCKS)
                || (file.isFile() == false)) {
            mimeType = MimeTypes.OCTET_STREAM;
        } else {
            mimeType = detect(file);
        }

        if (null != mimeType) {